<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>布局技巧_3</title>
    <style>
      .outter{
        width: 400px;
        height: 400px;
        background-color: gray;
        text-align: center;
        line-height: 400px;
        font-size: 0px;
      }
      img{
        vertical-align: middle;
      }
      span{
        font-size: 20px;
        vertical-align: middle;
      }


    </style>
  </head>
  <body>
    <div class="outter">
      <span>出来玩啊</span><img src="../images/悟空.jpg" alt="悟空">
    </div>
  </body>
</html>
